package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    @Insert("insert into dish_flavor (dish_id, name, value) values" +
            "(#{dishId},#{name},#{value})")
    void addDishFlavor(DishFlavor dishFlavor);

    @Select("select * from dish_flavor where dish_id=#{id}")
    List<DishFlavor> getDishFlavorById(Long id);

//    @Delete("delete from dish_flavor where dish_id=#{id}")
//    void removeDishFlavor(Long id);
//
//    @Delete("delete from dish_flavor where dish_id=#{id}")
//    void deleteDishFlavor(Integer id);

    void deleteDishFlavorByIds(List<Long> ids);

}
